#pragma once
#include<stdio.h>
#define maxSize 20
typedef int WeightType;

typedef struct {
	int v1, v2;
	WeightType cost;
}MSTEdgeNode;

typedef struct {
	MSTEdgeNode edgeValue[maxSize];
	int n;
}MinSpanTree;

void initMinSpanTree(MinSpanTree& T)
{
	T.n = 0;
}

void printMinspanTree(MinSpanTree& T)
{
	for (int i = 0; i < T.n; i++)
	{
		printf("(%d,%d,%d)\n", T.edgeValue[i].v1, T.edgeValue[i].v2, T.edgeValue[i].cost);
	}
}